/**
 * 角色管理结构
 */
import {
  /** @module 应用中心 */
  APP_CENTER,
  APP_CENTER_EQUIPMENT,
  APP_CENTER_EQUIPMENT_CREATE,
  APP_CENTER_EQUIPMENT_DETAIL,
  APP_CENTER_PRODUCTION,
  APP_CENTER_PRODUCTION_ANALYSIS_DETAIL,
  APP_CENTER_PRODUCTION_ANOMALY_DETAIL,
  APP_CENTER_VISION,
  APP_CENTER_VISION_DETAIL,
  /** @module 业务展示 */
  BUSINESS,
  BUSINESS_CENTER,
  /** @module 系统配置 */
  SYSTEM,
  SYSTEM_ARRANGE,
  SYSTEM_ARRANGE_ACTIVATE,
  SYSTEM_ARRANGE_ADD,
  SYSTEM_ARRANGE_CANCEL_ACTIVATE,
  SYSTEM_ARRANGE_DELETE,
  SYSTEM_ARRANGE_MODIFY,
  SYSTEM_CAMERA,
  SYSTEM_CAMERA_ADD,
  SYSTEM_CAMERA_DELETE,
  SYSTEM_CAMERA_MODIFY,
  SYSTEM_GALLERY,
  SYSTEM_GALLERY_ADD,
  SYSTEM_GALLERY_DELETE,
  SYSTEM_GALLERY_DOWNLOAD,
  SYSTEM_GALLERY_MODIFY,
  SYSTEM_RELEASE,
  SYSTEM_RELEASE_ADD,
  SYSTEM_RELEASE_ADD_DETAIL,
  SYSTEM_RELEASE_DELETE,
  SYSTEM_RELEASE_MODIFY,
  SYSTEM_RELEASE_MODIFY_DETAIL,
  /** @module 账户管理 */
  ACCOUNT,
  // 用户管理
  ACCOUNT_USER,
  ACCOUNT_USER_ADD,
  ACCOUNT_USER_MODIFY,
  ACCOUNT_USER_ENABLE,
  ACCOUNT_USER_DISABLE,
  ACCOUNT_USER_DELETE,
  //  角色管理
  ACCOUNT_ROLE,
  ACCOUNT_ROLE_ADD,
  ACCOUNT_ROLE_MODIFY,
  ACCOUNT_ROLE_DELETE,
  // 组织管理
  ACCOUNT_ORGANIZATION,
  ACCOUNT_ORGANIZATION_ADD,
  ACCOUNT_ORGANIZATION_MODIFY,
  ACCOUNT_ORGANIZATION_DELETE

} from './permissions'

/** @name 页面添加操作 */
// 应用中心
APP_CENTER_EQUIPMENT.children = [
  APP_CENTER_EQUIPMENT_DETAIL,
  APP_CENTER_EQUIPMENT_CREATE
]
APP_CENTER_PRODUCTION.children = [
  APP_CENTER_PRODUCTION_ANOMALY_DETAIL,
  APP_CENTER_PRODUCTION_ANALYSIS_DETAIL
]
APP_CENTER_VISION.children = [
  APP_CENTER_VISION_DETAIL
]

// 系统配置
SYSTEM_RELEASE.children = [
  SYSTEM_RELEASE_MODIFY_DETAIL,
  SYSTEM_RELEASE_MODIFY,
  SYSTEM_RELEASE_DELETE,
  SYSTEM_RELEASE_ADD_DETAIL,
  SYSTEM_RELEASE_ADD
]
SYSTEM_GALLERY.children = [
  SYSTEM_GALLERY_MODIFY,
  SYSTEM_GALLERY_DOWNLOAD,
  SYSTEM_GALLERY_DELETE,
  SYSTEM_GALLERY_ADD
]
SYSTEM_CAMERA.children = [
  SYSTEM_CAMERA_MODIFY,
  SYSTEM_CAMERA_DELETE,
  SYSTEM_CAMERA_ADD
]
SYSTEM_ARRANGE.children = [
  SYSTEM_ARRANGE_MODIFY,
  SYSTEM_ARRANGE_DELETE,
  SYSTEM_ARRANGE_CANCEL_ACTIVATE,
  SYSTEM_RELEASE_MODIFY_DETAIL
]

// 用户管理
ACCOUNT_USER.children = [
  ACCOUNT_USER_ADD,
  ACCOUNT_USER_MODIFY,
  ACCOUNT_USER_DELETE,
  ACCOUNT_USER_ENABLE,
  ACCOUNT_USER_DISABLE
]
// 角色管理
ACCOUNT_ROLE.children = [
  ACCOUNT_ROLE_ADD,
  ACCOUNT_ROLE_MODIFY,
  ACCOUNT_ROLE_DELETE
]
// 组织管理
ACCOUNT_ORGANIZATION.children = [
  ACCOUNT_ORGANIZATION_ADD,
  ACCOUNT_ORGANIZATION_MODIFY,
  ACCOUNT_ORGANIZATION_DELETE
]

/** @name 模块添加页面 */

APP_CENTER.children.push(
  APP_CENTER_EQUIPMENT,
  APP_CENTER_PRODUCTION,
  APP_CENTER_VISION
)

// 业务监控
BUSINESS.children.push(
  BUSINESS_CENTER
)

// 系统管理模块
SYSTEM.children.push(
  SYSTEM_ARRANGE,
  SYSTEM_CAMERA,
  SYSTEM_GALLERY,
  SYSTEM_RELEASE
)

// 账户管理模块
ACCOUNT.children.push(
  ACCOUNT_USER,
  ACCOUNT_ROLE,
  ACCOUNT_ORGANIZATION
)

export default [
  APP_CENTER,
  BUSINESS,
  SYSTEM,
  ACCOUNT
]
